/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.mabi.modular.runtime.module;

import com.mabi.modular.runtime.module.contributions.actions.AbstractMabiAction;
import com.mabi.modular.runtime.module.contributions.menus.MabiMenuItem;
import com.mabi.modular.runtime.module.contributions.views.ViewImpl;
import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author User
 */
public class SimpleMabiModule extends AbstractMabiModule {

    private String name;
    private String description;
    private float version;
    private List<ViewImpl> views;

    public void setViews(List<ViewImpl> views) {
        this.views = views;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setVersion(float version) {
        this.version = version;
    }

    @Override
    public String getName() {
        return this.name;
    }

    @Override
    public String getDescription() {
        return this.description;
    }

    @Override
    public float getVersion() {
        return this.version;
    }

    @Override
    public List<MabiMenuItem> getMenuItems() {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public List<ViewImpl> getViews() {
        return this.views;
    }

    @Override
    public String getServices() {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public List<AbstractMabiAction> getActions() {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public void addView(ViewImpl view) {
        if (this.views == null) {
            this.views = new ArrayList<ViewImpl>();
        }
        this.views.add(view);
    }
}
